home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / ui / modetoolbar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-08  |  2.1 KB  |  73 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           texttoolb.h  -  description
  9.                              -------------------
  10.     begin                : Sun Mar 10 2002
  11.     copyright            : (C) 2002 by Franz Schmid
  12.     email                : Franz.Schmid@altmuehlnet.de
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. #ifndef MODETOOLBAR_H
  25. #define MODETOOLBAR_H
  26.  
  27. #include "scribusapi.h"
  28. #include "sctoolbar.h"
  29. #include <QAction>
  30. #include <QMenu>
  31. #include <QWidgetAction>
  32.  
  33. class QEvent;
  34.  
  35. class QToolButton;
  36. class AutoformButtonGroup;
  37. class ScribusMainWindow;
  38. class WidgetPopupMenu2;
  39.  
  40. /**
  41.   *@author Franz Schmid
  42.   */
  43.  
  44. class SCRIBUS_API ModeToolBar : public ScToolBar
  45. {
  46.     Q_OBJECT
  47.  
  48. public: 
  49.     ModeToolBar(ScribusMainWindow* parent);
  50.     ~ModeToolBar() {};
  51.  
  52.     int SubMode;
  53.     int ValCount;
  54.     double *ShapeVals;
  55.     
  56.     virtual void changeEvent(QEvent *e);
  57.  
  58. public slots:
  59.     void GetPolyProps();
  60.     void SelShape(int s, int c, qreal *vals);
  61.     void languageChange();
  62.         
  63. protected:
  64.     AutoformButtonGroup* Rechteck;
  65.     QWidgetAction* insertShapeButtonAct;
  66.     QMenu* insertShapeButtonMenu;
  67.     QMenu* insertPolygonButtonMenu;
  68.     QAction* idInsertPolygonButtonMenu;
  69.     ScribusMainWindow* m_ScMW;
  70. };
  71.  
  72. #endif
  73.